﻿using Simple3DRedactor.Domain;

namespace SceneRedactor
{
    class ObjectViewFactory : IObjectViewFactory<IRedactorObjectView>
    {
        public IRedactorObjectView Create(Sphere obj)
        {
            return new SphereView(obj);
        }

        public IRedactorObjectView Create(Box box)
        {
            return new BoxView(box);
        }

        public IRedactorObjectView Create(Cylinder obj)
        {
            return new CylinderView(obj);
        }

        public IRedactorObjectView Create(Light obj)
        {
            return new LightView(obj);
        }

        public IRedactorObjectView Create(MeshObject obj)
        {
            return new MeshObjectView(obj);
        }
    }
}
